FROM centos:7
ADD jdk-17.0.4.1.tar.gz /usr/local/java/

RUN yum install dejavu-sans-fonts fontconfig -y
ENV JAVA_HOME /usr/local/java
ENV PATH $JAVA_HOME/bin:$PATH

LABEL com.qingcloud.version=latest
LABEL com.qingcloud.name=qingcloudtech/base-java